// config.js
const {
  ENV
} = require('./env')
let BASEURL
let BASEPASSPORTURL
let BASEAPIURL
let BASEAPIAIIIIN
let GPTSHIXIANJIA
let BASEUA
let ALIOSS
let WEBUSER
let BASEH5URL
switch (ENV) {
  case 'production':
    BASEURL = ''
    BASEPASSPORTURL = "https://passport.shixianjia.com"
    BASEAPIURL = "https://api.shixianjia.com"
    BASEAPIAIIIIN = "https://api.aiiiin.com"
    GPTSHIXIANJIA = "https://gpt.shixianjia.com"
    BASEUA = "https://www.aiiiin.com"
    ALIOSS = "https://aiiiinimg.oss-cn-shenzhen.aliyuncs.com"
    WEBUSER="https://ai.aiiiin.com"
    BASEH5URL="https://gzh5.aiiiin.com"
    break
  case 'test':
    BASEURL = ''
    BASEPASSPORTURL = "https://passport-dev.shixianjia.com"
    BASEAPIURL = "https://api-dev.shixianjia.com"
    BASEAPIAIIIIN = "https://api-test2.caotanghuali.com"
    GPTSHIXIANJIA = "https://gpt-dev.shixianjia.com"
    BASEUA = "http://test.caotanghuali.com"
    ALIOSS = "https://sxj-course.oss-cn-shenzhen.aliyuncs.com"
    WEBUSER="http://test.caotanghuali.com"
    BASEH5URL="https://gzh5_dev.aiiiin.com"
    break
  default:
    BASEURL = ''
    break
}
module.exports = {
  BASEURL, // 项目接口地址，支持多域名
  BASEPASSPORTURL,
  BASEAPIURL,
  BASEAPIAIIIIN,
  GPTSHIXIANJIA,
  BASEUA,
  ALIOSS,
  WEBUSER,
  BASEH5URL
}